import http from '@/common/utils/request.js'

export const pay = {
	//创建平台订单
	createOrder(data){
		return http.post('/pay/order/createOrder/', data, {custom:{}})
	},
	//创建小程序支付
	createWxPayforMinipro(data){
		return http.post('/pay/wx/createWxPayforMinipro/', data, {custom:{}})
	},
	//创建app支付
	createWxPayforApp(data){
		return http.post('/common/pay/createWxPayforApp/', data, {custom:{}})
	},
	//小程序支付同步回调
	payReturnforWx(data){
		return http.post('/common/pay/payReturnforWx/', data, {custom:{}})
	},
	//发起积分支付
	sendIncomsPay(data){
		return http.post('/pay/incomes/sendIncomsPay/', data, {custom:{}})
	},
	//创建乐付支付
	createLzPayforMinipro(data){
		return http.post('/pay/lzpay/createLzPayforMinipro/', data, {custom:{}})
	},
}